//
//  DVTabbarController.m
//  DVActivity
//
//  Created by pan Shiyu on 13-4-7.
//  Copyright (c) 2013年 pan Shiyu. All rights reserved.
//

#import "DVTabbarController.h"
#import "CMBaseViewController.h"

#import "DVMessageListVC.h"
#import "DVActivityListVC.h"
#import "DVSettingVC.h"

@implementation DVTabbarController

- (id)init {
    self = [super init];
    if (self) {
        
        DVMessageListVC* vc1 = [DVMessageListVC new];
        DVActivityListVC* vc2 = [DVActivityListVC new];
        DVSettingVC* vc3 = [DVSettingVC new];
        
        UIViewController* uvc1 = [[UINavigationController alloc] initWithRootViewController:vc1];
        uvc1.tabBarItem.image = [UIImage imageNamed:@"message.png"];
        
        UIViewController* uvc2 = [[UINavigationController alloc] initWithRootViewController:vc2];
        uvc2.tabBarItem.image = [UIImage imageNamed:@"activity.png"];
        
        
        UIViewController* uvc3 = [[UINavigationController alloc] initWithRootViewController:vc3];
        uvc3.tabBarItem.image = [UIImage imageNamed:@"more.png"];
        
        self.viewControllers = [NSArray arrayWithObjects:uvc1, uvc2, uvc3,  nil];
        self.view.backgroundColor = [UIColor clearColor];
    }
    return self;
}


@end
